{extend name="admin@index_layout"/}
{block name="main"}
<form class="layui-form" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">开户银行</label>
        <div class="layui-input-block">
            <input type="text" name="bank_name" readonly="readonly" autocomplete="off"
                   placeholder="开户银行" class="layui-input" value="{$data.bank_name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">银行账号</label>
        <div class="layui-input-block">
            <input type="text" name="bank_no" readonly="readonly" autocomplete="off"
                   placeholder="银行账号" class="layui-input" value="{$data.bank_no}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开票金额</label>
        <div class="layui-input-block">
            <input type="text" name="count_amount" readonly="readonly" autocomplete="off"
                   placeholder="开票金额" class="layui-input" value="{$data.count_amount}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">营业名称</label>
        <div class="layui-input-block">
            <input type="text" name="yingye_name" readonly="readonly" autocomplete="off"
                   placeholder="营业名称" class="layui-input" value="{$data.yingye_name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">营业执照地址</label>
        <div class="layui-input-block">
            <input type="text" name="yingye_address" readonly="readonly" autocomplete="off"
                   placeholder="营业执照地址" class="layui-input" value="{$data.yingye_address}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">接收邮箱</label>
        <div class="layui-input-block">
            <input type="text" name="receive_email" readonly="readonly" autocomplete="off"
                   placeholder="邮箱" class="layui-input" value="{$data.receive_email}">
        </div>
    </div>

    <input type="hidden" name="id" value="{$data.id}">
    {if($data.status==0)}
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit>确认开票</button>
            <!--            <button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
        </div>
    </div>
    {/if}
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}
